package com.jiang.daily.Q717;

/**
 * @author Jiang
 * @version 1.0
 * @date 2025/11/18 10:47
 */
class Solution {
    public boolean isOneBitCharacter(int[] bits) {
        int len = bits.length;
        int cnt = 0;
        for (int i = len - 2; i >= 0; i--) {
            if (bits[i] == 0) break;
            cnt++;
        }
        return cnt % 2 == 0;
    }
}